package com.sg.dto.integration.app;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc DifferentBatchBrotherDeptDto
 * @使用场景
 */
@Data
public class DifferentBatchBrotherDeptDto
        extends BaseDto
        implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("部门根节点ID")
    private String evaObjTargetCycleId;

    /**
     * 一级部门ID
     */
    @ApiModelProperty("一级部门ID")
    private String deptId;

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DifferentBatchBrotherDeptDto that = (DifferentBatchBrotherDeptDto) o;
        return (
                evaObjTargetCycleId == that.evaObjTargetCycleId &&
                        deptId == that.deptId &&
                        deptShortName == that.deptShortName
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                evaObjTargetCycleId,
                deptId,
                deptShortName
        );
    }

}
